﻿@model eShop.Web.Models.ProductConsultListModel
@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>@Model.ProductInfo.Name-咨询列表-@{@WorkContext.ShopConfig.SiteTitle}</title>
    @Html.Raw(WorkContext.ShopConfig.SEOKeyword)
    @Html.Raw(WorkContext.ShopConfig.SEODescription)
    <link href="@{@WorkContext.CSSCDN}/themes/default/css/base.css" rel="stylesheet" type="text/css" />
    <link href="@{@WorkContext.CSSCDN}/themes/default/css/content.css" rel="stylesheet" type="text/css" />
    <script src="@{@WorkContext.ScriptCDN}/scripts/jquery.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/scripts/common.js" type="text/javascript"></script>
    <script src="@{@WorkContext.ScriptCDN}/scripts/product.js" type="text/javascript"></script>
    <script type="text/javascript">
        uid = @WorkContext.Uid;
        pid = @Model.ProductInfo.Pid;
        isGuestSC = @WorkContext.ShopConfig.IsGuestSC;
        scSubmitType = @WorkContext.ShopConfig.SCSubmitType;
    </script>
</head>

<body>
@Html.Partial("_header")

@{
    List<CategoryInfo> categoryList = Categories.GetCategoryList();
    CategoryInfo categoryInfo2 = Categories.GetCategoryById(Model.CategoryInfo.ParentId, categoryList);
    CategoryInfo categoryInfo1 = Categories.GetCategoryById(categoryInfo2.ParentId, categoryList);
    }

<div class="breadcrumb box">
<strong><a href="#">@categoryInfo1.Name</a></strong>
<span>&nbsp;&gt;&nbsp;<a href="#">@categoryInfo2.Name</a>&nbsp;&gt;&nbsp;<a href="@Url.Action("category", new RouteValueDictionary { { "cateId", Model.CategoryInfo.CateId } })">@Model.CategoryInfo.Name</a></span></div>


<div id="ConInfo" class="box">

<div id="infoL">
<div class="itme">
<h2>商品信息</h2>
<div class="proList proList3">
<ul>
<li>
<a href="@Url.Action("product", new RouteValueDictionary { { "pid", Model.ProductInfo.Pid } })"><img src="@{@WorkContext.ImageCDN}/upload/product/show/thumb190_190/@Model.ProductInfo.ShowImg" width="100%" />
<em>@Model.ProductInfo.Name</em></a>
<div class="i"><p>商城价:</p><b>¥@Model.ProductInfo.ShopPrice</b></div>
<div class="i"><p>商品评分:</p><b><div class="star">
<span class="star_yellow" style=" width:@Html.Raw((Model.ProductInfo.GetStarLevel() * 20).ToString())%;">&nbsp;</span>
</div></b></div>
<div class="i"><p>评价数:</p><span>@Model.ProductInfo.ReviewCount 条</span></div>
<div class="i"><a href="javascript:void(0)" onclick="addProductToCart(@Model.ProductInfo.Pid, 1)" class="redBT">加入购物车</a></div>
</li>
</ul>
</div>
<div class="clear"></div>
</div>
</div>

<div id="infoR">
<div class="infoRBox" style="border:0;">

<h2 class="infoRT infoBT2">
    <a href="@Url.Action("product", new RouteValueDictionary { { "pid", Model.ProductInfo.Pid } })" class="fbpl" style=" background-color:rgb(247, 247, 247); color:#005aa0;">返回商品页>></a>
    <ul>
        <li @if(Model.ConsultTypeId==0){<text>class="hot"</text>}><a href="@Url.Action("productconsultlist", new RouteValueDictionary { { "pid", Model.ProductInfo.Pid }, { "consultTypeId", 0 } })">全部购买咨询</a></li>
        @foreach (ProductConsultTypeInfo info in Model.ProductConsultTypeList)
        {
        <li @if(Model.ConsultTypeId==info.ConsultTypeId){<text>class="hot"</text>}><a href="@Url.Action("productconsultlist", new RouteValueDictionary { { "pid", Model.ProductInfo.Pid }, { "consultTypeId", info.ConsultTypeId } })">@info.Title</a></li>
        }
        <div class="clear"></div>
    </ul>
</h2>
@foreach (ProductConsultInfo info in Model.ProductConsultList)
{
<div class="askItme">
    <h3><i>用　　户：@info.ConsultNickName</i> <em>@info.ConsultTime</em></h3>
    <dl class="ask">
        <dt>咨询内容：</dt>
        <dd><a target="_blank" href="#">@info.ConsultMessage</a></dd>
    </dl>
    <dl class="answer">
        <dt>商家回复：</dt>
        <dd><a target="_blank" href="#">@info.ReplyMessage</a></dd>
    </dl>
</div>
}

@Html.WebPager(Model.PageModel)

</div>
<div class="Consult_Form">
	<h5>发表咨询：</h5>
    <a name="consult" class="hide" href="#">锚点</a>
	<div class="Consult_Explain">声明：您可在购买前对产品包装、颜色、运输、库存等方面进行咨询，我们有专人进行回复！因厂家随时会更改一些产品的包装、颜色、产地等参数，所以该回复仅在当时对提问者有效，其他网友仅供参考！咨询回复的工作时间为：周一至周五，9:00至18:00，请耐心等待工作人员回复。</div>
    <form name="consultProductFrom" action=""><ul><li id="pointType">
			<span style="display: inline;">咨询类型：</span>
            @foreach (ProductConsultTypeInfo info in Model.ProductConsultTypeList)
            {
			@:<input type="radio" value="@info.ConsultTypeId" name="consultTypeId">@info.Title  
            }
		</li><li><span>咨询内容：</span><textarea class="area1" name="consultMessage" style="font-size: 14px;"></textarea></li>
		<li class="buttons"><a href="javascript:void(0)" onclick="consultProduct(@WorkContext.Uid,@Model.ProductInfo.Pid)" class="left" style="padding:0 10px 0 65px;"><img src="@{@WorkContext.ImageCDN}/themes/default/images/tj.jpg" ></a>@*&nbsp;<label><input name="isemail" type="checkbox" checked="checked" style="vertical-align:-3px;" /> &nbsp;将客服的回复发到我的邮箱</label>*@</li>
	</ul></form>
</div>
 </div>
<div class="clear"></div>
</div>


@Html.Partial("_footer")
</body>
</html>
